export default [
  {
    name: 'demo-page-1',
    path: '/demo-page-1',
    component: () => import('@/layout'),
    alwaysShow: true,
    meta: {
      title: '系统管理',
      icon: 'user'
    },
    children: [
      {
        name: 'demo1-1',
        path: 'demo1-1',
        component: () => import('@/views/demo-page/index'),
        permis: { admin: ['role_a', 'role_b'] },
        meta: { title: '用户管理-admin' }
      },
      {
        name: 'demo1-2',
        path: 'demo1-2',
        component: () => import('@/views/demo-page/other'),
        meta: { title: '团队管理' }
      },
      {
        name: 'demo1-3',
        path: 'demo1-3',
        component: () => import('@/views/demo-page/other'),
        permis: { part: ['role_a', 'role_b'] },
        meta: { title: '数据管理-part' }
      },
      {
        name: 'demo1-detail',
        path: 'demo1-detail',
        hidden: true,
        component: () => import('@/views/demo-page/detail'),
        meta: { title: '详情页', activeMenu: '/demo-page-1/demo1-1' }
      }
    ]
  },
  {
    name: 'demo-page-2',
    path: '/demo-page-2',
    component: () => import('@/layout'),
    alwaysShow: true,
    meta: {
      title: '商品管理',
      icon: 'shopping'
    },
    children: [
      {
        name: 'demo2-1',
        path: 'demo2-1',
        component: () => import('@/views/demo-page/index'),
        permis: { admin: [], part: [] },
        meta: { title: '商品列表' }
      }
    ]
  }
];
